export function uint8ArrayToString(uint8Array) {
    let arrayBuffer = new ArrayBuffer(uint8Array.length)
    let u8a = new Uint8Array(arrayBuffer)
    for (let i = 0; i < uint8Array.length; i++) {
        u8a[i] = uint8Array[i]
    }
    let decoder = new TextDecoder('utf8')
    return decoder.decode(arrayBuffer)
}